package com.jy.adscm.operation.hscrb.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.hscrb.bean.LjzzPartsmadedetail;
import com.jy.adscm.operation.hscrb.mapper.mysql.LjzzPartsmadedetailMapper;
import com.jy.adscm.operation.hscrb.service.LjzzPartsmadedetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zyl
 * @since 2018-11-26
 */
@Service
public class LjzzPartsmadedetailServiceImpl extends ServiceImpl<LjzzPartsmadedetailMapper, LjzzPartsmadedetail> implements LjzzPartsmadedetailService {

    @Override
    public List<LjzzPartsmadedetail> selectByTid(String tid) throws AdscmSystemException {
        Wrapper<LjzzPartsmadedetail>  wrapper =new EntityWrapper<>();
        wrapper.eq("TID",tid);
        List<LjzzPartsmadedetail> ljzzPartsmadedetails = super.selectList(wrapper);
        return ljzzPartsmadedetails;
    }

    @Override
    public Boolean updateLjzzPartsmadedetail(LjzzPartsmadedetail ljzzPartsmadedetail) throws AdscmSystemException {
        boolean result = super.updateById(ljzzPartsmadedetail);
        return result;
    }
}
